<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'tests-form',
	'enableAjaxValidation'=>false,
)); ?>


	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'tests_name'); ?>
		<?php echo $form->textField($model,'tests_name',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'tests_name'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'tests_score'); ?>
		<?php echo $form->textField($model,'tests_score'); ?>
		<?php echo $form->error($model,'tests_score'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'tests_memo'); ?>
		<?php $this->widget('application.extensions.fckeditor.FCKEditorWidget',array(
		    "model"=>$model,                
		    "attribute"=>'tests_memo',        
		    "height"=>'400px',
		    "width"=>'100%',
		    "toolbarSet"=>'Basic',         
		    "fckeditor"=>"/opt/lampp/htdocs/kaoshi/assets/fckeditor/fckeditor.php",
		    "fckBasePath"=>Yii::app()->baseUrl."/assets/fckeditor/",
		    "config" => array("EditorAreaCSS"=>Yii::app()->baseUrl.'/css/index.css',),
		) ); ?>
		<!--
		<?php echo CHtml::activeTextArea($model,'tests_memo',array('rows'=>10, 'cols'=>70)); ?>
		-->
		<?php echo $form->error($model,'tests_memo'); ?>
	</div>


	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? '提交' : '保存'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->